<!DOCTYPE html>
<html>
<head>
<style>
html, body {
    margin: 0;
    padding: 0;
}
.container {
    width: 100px;
    height: 100px;
    overflow: auto;
    background-color: lime;
    position: relative;
}
.box {
    width: 500px;
    height: 500px;
}
</style>
<script>
if (window.internals)
    internals.settings.setHideScrollbars(true);
</script>
</head>
<body>
<p>You should see 4 green boxes that do not show scrollbars.
They would show scrollbars if they weren't hidden (2nd and 4th with scrollbars on the left).</p>

<div class="container"><div class="box"></div></div>
<div dir="rtl" class="container"><div class="box"></div></div>

<div class="container" style="overflow: scroll"></div>
<div dir="rtl" class="container" style="overflow: scroll"></div>
</body>
</html>
